﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JSDev.Data
{
    public class LogContext : DbContext
    {
        public DbSet<JSDev.Entities.Log> logs { get; set; }


        public void AddLog(JSDev.Entities.Log newLogEntry)
        {
            using (LogContext log = new LogContext())
            {
                log.logs.Add(newLogEntry);
                log.SaveChanges();

                Entities.Log l = new Entities.Log();
            }
        }
    }
}
